Skip to content

adds per-actionType enablement via config xpack.actions.enabledActionTypes#52967

Merged
pmuellr merged 7 commits intoelastic:masterfrom
pmuellr:actions/enable-per-action
Dec 17, 2019
Merged

adds per-actionType enablement via config xpack.actions.enabledActionTypes#52967
pmuellr merged 7 commits intoelastic:masterfrom
pmuellr:actions/enable-per-action

Conversation

@pmuellr
Copy link
Copy Markdown
Contributor

@pmuellr pmuellr commented Dec 12, 2019

Summary

resolves #52326

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@pmuellr pmuellr added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.6.0 Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// labels Dec 12, 2019
@pmuellr
Copy link
Copy Markdown
Contributor Author

pmuellr commented Dec 12, 2019

This still needs:

@mikecote
Copy link
Copy Markdown
Contributor

enabledTypes is 👍 with me!

@pmuellr pmuellr marked this pull request as ready for review December 13, 2019 20:32
Copy link
Copy Markdown
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 Just one question and nit.

Comment thread x-pack/legacy/plugins/actions/server/actions_config.ts Outdated
Copy link
Copy Markdown
Contributor

@gmmorris gmmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a few comments for a few small things, but overall LGTM. 👍

Comment thread x-pack/legacy/plugins/actions/README.md Outdated
Comment thread x-pack/legacy/plugins/actions/server/lib/action_executor.ts
Comment thread x-pack/legacy/plugins/actions/server/actions_client.ts
actionType: string
): boolean {
const enabled = new Set(enabledTypes);
if (enabled.has('*')) return true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the enum here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops, ya, I added the enum after starting with just using literal * - should be using the enum

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread x-pack/legacy/plugins/actions/server/actions_config.ts
Comment thread x-pack/legacy/plugins/actions/index.ts Outdated
@mistic
Copy link
Copy Markdown
Contributor

mistic commented Dec 17, 2019

@elasticmachine merge upstream

@pmuellr pmuellr changed the title adds per-actionType enablement via config xpack.actions.enabledTypes adds per-actionType enablement via config xpack.actions.enabledActionTypes Dec 17, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM 👍

@pmuellr pmuellr merged commit 4f5db14 into elastic:master Dec 17, 2019
pmuellr added a commit to pmuellr/kibana that referenced this pull request Dec 17, 2019
…Types (elastic#52967)

* adds per-actionType enablement via config xpack.actions.enabledTypes

resolves: elastic#52326
pmuellr added a commit that referenced this pull request Dec 17, 2019
…Types (#52967) (#53300)

* adds per-actionType enablement via config xpack.actions.enabledTypes

resolves: #52326
@mikecote
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@pmuellr pmuellr deleted the actions/enable-per-action branch January 23, 2020 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configurations to enable/disable individual built-in action types

5 participants